package com.arpa.ntocc.basic.api.service;


import com.arpa.ntocc.basic.api.domain.entity.TableBackupConfig;
import com.arpa.ntocc.basic.api.domain.dto.TableBackupConfigDTO;
import com.arpa.ntocc.basic.api.domain.vo.TableBackupConfigVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 表数据备份配置 服务类
 *
 */
public interface ITableBackupConfigService extends IService<TableBackupConfig> {

    /**
     * 保存
     *
     * @param entity
     * @return
     */
    @Override
    boolean save(TableBackupConfig entity);

    /**
     * 根据code更新实体
     *
     * @param entity
     * @return
     */
    int updateByCode(TableBackupConfig entity);

    /**
     * 查询列表
     *
     * @param tableBackupConfigDTO
     * @return
     */
    List<TableBackupConfigVO> queryList(TableBackupConfigDTO tableBackupConfigDTO);

    /**
     * 查询合计,包含总数
     *
     * @param tableBackupConfigDTO
     * @return
     */
    TableBackupConfigVO queryListSum(TableBackupConfigDTO tableBackupConfigDTO);

    /**
     * 备份表数据
     */
    void backupTableData();
}
